package top.ranzhang.bean.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDate;

@Data
public class CoashDTO {
    private Integer id;
    /**
     * 电话号码
     */
    @NotBlank(message = "电话号码不能为空")
    @Size(min = 11,max = 11, message = "非法手机号")
    private String tel;

    @NotBlank(message = "姓名不能为空")
    private String name;

    private Integer clazzNumber;

    @NotNull(message = "入职时间不能为空")
    private LocalDate entryTime;

    @NotNull(message = "生日不能为空")
    private LocalDate birthday;
    /**
     * 1:激活，2:失效
     */
    @NotNull(message = "状态不能为空")
    private Integer state;


    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 身份证号码
     */
    @NotBlank(message = "身份证号码不能为空")
    @Size(min = 18,max = 18, message = "非法身份证")
    private String bodyNumber;
}
